﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using System.ComponentModel;

namespace LevelEditor
{
    public class TerrainMaterial
    {
        /// <summary>
        /// the image loaded for this material
        /// </summary>
        public Texture2D texture;

        /// <summary>
        /// the name of this texture
        /// </summary>
        public string name;

        /// <summary>
        /// the rules the terrain must follow when textureing
        /// </summary>
        public BindingList<TerrainRule> rules;

        public TerrainMaterial(Texture2D texture, string name, BindingList<TerrainRule> rules)
        {
            this.texture = texture;
            this.name = name;
            this.rules = rules;
        }

        public override string ToString()
        {
            return name;
        }
    }
}